package com.pn.util;

public class PageCriterion {
    private Integer pageSize;

    private Integer pageNumber;

    private Integer start;

    private Integer tempNum;

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Integer getStart() {
        return (this.pageNumber - 1) * pageSize;
    }

    public Integer getTempNum() {
        return tempNum;
    }

    public void setTempNum(Integer tempNum) {
        this.tempNum = tempNum;
    }

	@Override
	public String toString() {
		return "PageCriterion{" +
					   "pageSize=" + pageSize +
					   ", pageNumber=" + pageNumber +
					   ", start=" + start +
					   ", tempNum=" + tempNum +
					   '}';
	}
}
